package com.model;

public class Shopcart {
	private Integer sid;//购物车ID
	private Integer uid;//用户ID
	private Integer pid;//产品ID
	private String pname;//产品名称
	private String pimage;//产品图片
	private Double pprice;//单价
	private Double weight;//重量
	
	public Shopcart() {
		super();
	}



	public Shopcart(Integer sid, Integer uid, Integer pid, String pname, String pimage, Double pprice, Double weight) {
		super();
		this.sid = sid;
		this.uid = uid;
		this.pid = pid;
		this.pname = pname;
		this.pimage = pimage;
		this.pprice = pprice;
		this.weight = weight;
	}



	public String getPimage() {
		return pimage;
	}

	public void setPimage(String pimage) {
		this.pimage = pimage;
	}



	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Double getPprice() {
		return pprice;
	}

	public void setPprice(Double pprice) {
		this.pprice = pprice;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}



	@Override
	public String toString() {
		return "Shopcart [sid=" + sid + ", uid=" + uid + ", pid=" + pid + ", pname=" + pname + ", pimage=" + pimage
				+ ", pprice=" + pprice + ", weight=" + weight + "]";
	}

	
}
